package org.cuatrovientos.username.UserName;

public class UserName {
	
	private String name;
	private String surname;
	
		
/**
 * 
 */
	public UserName() {
		
	name="";
	surname = "";
			
	}
	
	/**
	 * 
	 * @param name
	 * @param surname
	 */
	public UserName (String name, String surname){
		
		this.name = name;
		this.surname = surname;
			
		
	}
	
	
	/**
	 * 
	 * @return
	 */
	public String generetate(){
		String result="";
		
		if(! name.equals("")&& !surname.equalsIgnoreCase("")){
				result = name.toLowerCase();
		result += "_";
		result += surname.toLowerCase();
		} else {
		result = "-empty- ";

	}
		return result;
}
}


